<!--
  @author nowind
  @since 17/07/23 14:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common::jscss"/>
<title>排放设置</title>
</head>
<body>
<div class="layui-fluid">

    <div class="layui-card">
        <div class="layui-card-body">

            <form method="post" action="" class="layui-form" lay-filter="zmn-form">

                <input type="hidden" name="key" th:value="${kvDTO.key}"/>

                <div style="margin-left: 40px">用于配置该项服务减少的排量，向用户展示为环保做出的贡献</div>

                <div class="layui-form-item" style="margin-top: 30px">
                    <label class="layui-form-label layui-form-required">总排量：</label>
                    <div class="layui-input-inline">
                        <input type="number" name="value" autocomplete="off" class="layui-input" th:value="${kvDTO.value}"
                               lay-verify="isPositiveNumber|required" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
                    </div>
                    <div class="layui-form-mid layui-word-aux">单位：g</div>
                </div>

                <div class="layui-form-item submit">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit"
                                th:if="${#authPermit.checkPermit('/product/updateTotalEmissions.action')}">保存
                        </button>
                        <button type="reset" class="layui-btn layui-btn-primary"
                                onclick="cancel()" >取消
                        </button>
                    </div>
                </div>

            </form>
        </div>
    </div>
</div>
</body>
</html>
<script type="text/javascript" th:inline="javascript">
    var json = {
        servProductVO: [[${servProductVO}]],
        attrList: [[${attrList}]]
    };
    layui.config({
        version: 202008271643,
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        product_totalEmissions_edit_js: "product/zmn.plat.totalEmissions.edit"
    }).use(['index', 'product_totalEmissions_edit_js']);
</script>